package org.swidgets.client;



import org.swidgets.sTabPanel.STabPanel;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ShowCase implements EntryPoint {	
	public void onModuleLoad() {
		VerticalPanel container = new VerticalPanel(){{
			setSpacing(20);
			STabPanel showCase = new STabPanel();
			VerticalPanel p1 = new VerticalPanel();
			p1.setSize("550px", "200px");
			p1.setSpacing(10);
			p1.add(SWidgetsGallery.getDemoSLabel());

			VerticalPanel p2 = new VerticalPanel();
			p2.setSpacing(10);
			p2.setSize("550px", "200px");
			p2.add(SWidgetsGallery.getDemoInputBox());
			p1.setSpacing(10);


			VerticalPanel p4 = new VerticalPanel();
			p4.setSpacing(10);
			p4.setSize("550px", "200px");
			p4.add(SWidgetsGallery.getDemoMessageBox());

			VerticalPanel p5 = new VerticalPanel();
			p5.setSpacing(10);
			p5.setSize("450px", "200");
			p5.add(SWidgetsGallery.getDemoSTabPanel());
							
			VerticalPanel p6 = new VerticalPanel();
			p6.setSpacing(10);
			p6.setSize("450px", "200");
			p6.add(SWidgetsGallery.getForm());
			
			VerticalPanel p7 = new VerticalPanel();
			p7.setSpacing(10);
			p7.setSize("450px", "200");
			p7.add(SWidgetsGallery.getInputData());
			
			VerticalPanel p8 = new VerticalPanel();
			p8.setSpacing(10);
			p8.setSize("450px", "200");
			p8.add(SWidgetsGallery.getComboBox());	
			
			
			showCase.add(p1, "Labels");
			showCase.add(p2, "Input box");
			showCase.add(p4, "Message box");
			showCase.add(p5, "Tab Panel");
			showCase.add(p6, "Form");
			showCase.add(p7, "Date Input");
			showCase.add(p8, "Combo box");
			showCase.selectTab(0);
			add(SWidgetsGallery.getTitle());
			add(showCase);
		}};
		RootPanel.get("slot1").add(container);		
	}	
}
